﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplicationEmpty.Models;
using MvcApplicationEmpty.Repositories;

namespace MvcApplicationEmpty.Controllers
{
    public class CustomerController : Controller
    {
        //
        // GET: /Customer/

        private CustomerRepository customerRepository = new CustomerRepository();

        public ActionResult Index()
        {
            var customer = customerRepository.GetCustomer().ToModel();
            return View(customer);
        }

    }
}
